from django.template.loader import get_template
from django.template import Context
from django.http import HttpResponse
import datetime
from recv.models import shipment_config

def recv_config(request):
    now = shipment_config('X',1,'loc1','sub_loc1')
    now.save()
    t = get_template('recv_config.tpl')
    html = t.render(Context({'current_date': now}))
    return HttpResponse(html)